package com.lysj.bhp.borrowing.controller;

import com.lysj.bhp.borrowing.base.BorrowingContent;
import com.lysj.bhp.borrowing.domain.CreditFile;
import com.lysj.bhp.util.web.Resp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("admin/credit_file")
public class CreditFileController extends BorrowingContent {

    @GetMapping("/find_user")
    public Resp list(Long userId) {
        return new Resp(creditFileRepository.findByUserId(userId));
    }
}
